#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys, traceback, Ice
Ice.loadSlice('Ripper.ice', ['-I' '/usr/share/slice'])
import Ripper

class Client (Ice.Application):
    def run (self, argv):
        self.shutdownOnInterrupt()
        obj = self.communicator().stringToProxy('EncoderFactory')
        ripper = Ripper.Mp3EncoderFactoryPrx.checkedCast(obj)
        encoder = ripper.createEncoder()
        encoder.encode(None, None)
        self.communicator().waitForShutdown()
        return 0

Client().main(sys.argv, 'config.client')
